package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文件版本记录 文件版本记录
 * </p>
 *
 * @author jiayen
 * @since 2021-05-08
 */

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_project_file_version")
@ApiModel(value = "ProjectFileVersion对象", description = "文件版本记录 文件版本记录")
public class ProjectFileVersion implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "intId", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "关联的文件id")
    @TableField("intFileId")
    private Integer fileId;

    @ApiModelProperty(value = "当前版本")
    @TableField("intVersion")
    private Integer version;

    @ApiModelProperty("哈希值")
    @TableField("vcHash")
    private String hash;

    @ApiModelProperty("文件大小")
    @TableField("douSize")
    private Long size;


    @ApiModelProperty("该版本文件名称")
    @TableField("vcFileName")
    private String fileName;

    @ApiModelProperty(value = "历史文件位置")
    @TableField("vcPath")
    private String path;

    @ApiModelProperty(value = "创建人")
    @TableField("created_by")
    private Integer createdBy;

    @ApiModelProperty(value = "更新人")
    @TableField("updated_by")
    private Integer updatedBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_time")
    private Date createdTime;

    @ApiModelProperty(value = "创建人名称")
    @TableField("created_name")
    private String createdName;

    @ApiModelProperty(value = "更新人名称")
    @TableField("updated_name")
    private String updatedName;

    @ApiModelProperty(value = "更新时间")
    @TableField("updated_time")
    private Date updatedTime;


}
